﻿const myName:string = 'Tom';

const ten:number = 10;
const negative:number = -100;
const decimal :number = 10.33;

const sentence = 'this is a sentence';
sentence.includes('is');



interface PostNum{
    title:string,
    address:string,
    postNo:number
}

class Car{
    public color:string;
    private year:number;

    constructor(color:string,year:number) {
        this.color = color;
        this.year = year;
    }

    drive(){
        console.log(this.year);

    }
}

const myCar = new Car('red',10);
myCar.drive();

